package com.eduhzy.ttw.teacher.mvp.model;

import com.eduhzy.ttw.commonsdk.entity.CommonData;
import com.eduhzy.ttw.commonsdk.entity.MineInfo;
import com.eduhzy.ttw.commonsdk.http.CommonApi;
import com.eduhzy.ttw.teacher.mvp.contract.ContactDetailsContract;
import com.jess.arms.di.scope.ActivityScope;
import com.jess.arms.integration.IRepositoryManager;
import com.jess.arms.mvp.BaseModel;

import java.util.Map;

import javax.inject.Inject;

import io.reactivex.Observable;

/**
 * @author xubo
 * @date 2018-7-25 9:59:04
 */
@ActivityScope
public class ContactDetailsModel extends BaseModel implements ContactDetailsContract.Model {


    @Inject
    public ContactDetailsModel(IRepositoryManager repositoryManager) {
        super(repositoryManager);
    }

    @Override
    public Observable<CommonData<MineInfo>> getTargetByQrCode(Map<String, Object> map) {
        return mRepositoryManager.obtainRetrofitService(CommonApi.class).getTargetByQrCode2(map);
    }
}